import request from '@/utils/request';

export function getAnalysisList() {
  return request({
    url: '/tools/ocr/listAll',
    method: 'get',
  });
}

export function getReanalysis(params) {
  return request({
    url: '/tools/ocr/reanalysis',
    method: 'get',
    params,
  });
}

export function deleteAnalysis(data) {
  return request({
    url: '/tools/ocr/remove',
    method: 'delete',
    data,
  });
}

export function getAnalysisDetail(id) {
  return request({
    url: '/tools/ocr/getAnalysisDetail/' + id,
    method: 'get',
    timeout: 30000
  });
}

export function getAnalysisSectionInfo(data) {
  return request({
    url: '/tools/ocr/extract',
    method: 'get',
    params: data,
  });
}

export function exportData(data) {
  return request({
    url: '/tools/ocr/export',
    method: 'post',
    data,
  });
}
